package com.second.app.spring.annoations.autowired;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @Author GYZ
 * @Date 2023/9/14
 * <pre>
 *
 * </pre>
 */

//@Component
//public class StudentComponent {
//
//
//    private Student student;
//
//    public Student getStudent() {
//        return student;
//    }
//
//    @Autowired
//    public void setStudent(Student student) {
//        this.student = student;
//    }
//
//    @Override
//    public String toString() {
//        return "StudentComponent{" + "student=" + student + '}';
//    }
//}
